function displayCitations() {
	if(!document.getElementsByTagName || !document.createElement || !document.createTextNode) return false;
	
	let blockQuotes = document.getElementsByTagName("blockquote");
	if(blockQuotes.length < 1) return false;
	for(let i = 0; i < blockQuotes.length; i++) {
		if(!blockQuotes[i].getAttribute("cite")) continue;
		let url = blockQuotes[i].getAttribute("cite");
		let quoteChildren = blockQuotes[i].getElementsByTagName("*");
		if(quoteChildren.length < 1) continue;
		let elem = quoteChildren[quoteChildren.length - 1];
		let citeLink = document.createElement("a");
		citeLink.setAttribute("href", url);
		let citeLinkTxt = document.createTextNode("source");
		citeLink.appendChild(citeLinkTxt);
		let superScript = document.createElement("sup");
		superScript.appendChild(citeLink);
		elem.appendChild(superScript);
	}
}

addLoadEvent(displayCitations);